	function swakOTSPrevious(otswindow) {
		//alert('swakOTSPrevious ' + otswindow);
		if (otswindow == null) return;
		var otslist = otswindow.opener.swakOTSList;
	//							alert('swakOTSPrevious otswindow.opener.content.document ' + otswindow.opener.swakOTSList);
		if (otslist == null) return;
	//							alert('otslist len ' + otslist.length);
		
		//var odoct = otswindow.document.getElementById('liveObjectContainer');
		//alert('odoct ' + odoct.innerHTML);
		
		if (otswindow.opener.swakOTSListIndex == 0) {
			return;
		}
		var pindex = otswindow.opener.swakOTSListIndex - 1;
		if (pindex < 0) {
			return;
		}
//		alert(otswindow.opener.swakOTSListIndex + ',swakOTSListIndex pindex ' +pindex);
		var oro = otslist[pindex];
		if (oro == null) return;
		var odoc = otswindow.document.getElementById('liveObjectContainer');
		odoc.innerHTML = oro.innerHTML;
		otswindow.opener.swakOTSListIndex = pindex;
		var pb = otswindow.document.getElementById('swakotsprevious');
		var nb = otswindow.document.getElementById('swakotsnext');
		if (pindex == 0) {
			//pb.setAttribute('disabled','true');
			pb.disabled=true;
		}
		else {
			//pb.setAttribute('disabled','false');
			pb.disabled=false;
		}
		if (pindex == otslist.length-1 || otslist.length < 2) {
			//nb.setAttribute('disabled','true');
			nb.disabled=true;
		}
		else {
			//nb.setAttribute('disabled','false');
			nb.disabled=false;
		}		
	}
	
	function swakOTSNext(otswindow) {
		if (otswindow == null) return;
		var otslist = otswindow.opener.swakOTSList;
		
		if (otslist == null) return;
//		alert('otslist len ' + otslist.length);
		var nindex = otswindow.opener.swakOTSListIndex + 1;
		var maxnext = otslist.length -1;
		
		if (nindex > maxnext) {
			return;
		}
//		alert(otswindow.opener.swakOTSListIndex + ',swakOTSListIndex nindex ' +nindex);
		var oro = otslist[nindex];
		if (oro == null) return;
		var odoc = otswindow.document.getElementById('liveObjectContainer');
		odoc.innerHTML = oro.innerHTML;
		otswindow.opener.swakOTSListIndex = nindex;
		var nb = otswindow.document.getElementById('swakotsnext');
		var pb = otswindow.document.getElementById('swakotsprevious');
		//alert('nb ' + nb);
		if (nindex == maxnext) {
			//nb.setAttribute('disabled','true');
			nb.disabled=true;
		}
		else {
			nb.setAttribute('disabled','false');
			nb.disabled=false;
		}
		if (nindex == 0) {
			//pb.setAttribute('disabled','true');
			pb.disabled=true;
		}
		else {
			//pb.setAttribute('disabled','false');
			pb.disabled=false;
		}
	}